View::SelectionToClipboard
Section: ET++ method description (n)
Updated: automatically Mon Apr 8 20:17:22 1991
Index
Return to Main Contents
NAME
View::SelectionToClipboard - instance method
TEMPLATE
void SelectionToClipboard(char * requiredType, ostream & outputStream)
SPECIFIERS
public
abstract
virtual
DESCRIPTION
SelectionToClipboard is called when the cut or copy command is selected from the popup menu. But these menu items are only enabled if the method HasSelection returns TRUE.
SelectionToClipboard must write the current selection of this to the outputStream in the requiredType. See the method TextView::SelectionToClipboard for an example.
See also method PasteData.
Method is sometimes overridden.
ARGUMENTS
- char * requiredType
-
The current selection of this must be written to the outputStream in this type. Common types are cDocTypeET which indicates ET++ Object Input/Output format and cDocTypeAscii for pure ASCII text.
The requiredType can also be set by the client. Before SelectionToClipboard is called the method ClipBoard::SetType must be applied to the var gClipBoard. See the method TextView::DoMenuCommand for an example.
- ostream & outputStream
-
is a stream created by the clipboard where to write the current selection of this
RETURN ARGUMENT
void
CATEGORIES
clipboard, overrider interface
FIRST DEFINITION
class View
FILES
- implementation:
-
View.C
Index
- NAME
-
- TEMPLATE
-
- SPECIFIERS
-
- DESCRIPTION
-
- ARGUMENTS
-
- RETURN ARGUMENT
-
- CATEGORIES
-
- FIRST DEFINITION
-
- FILES
-
This document was created by
man2html,
using the manual pages.
Time: 00:40:20 GMT, March 30, 2022